﻿<% @ Page Language="C#" MasterPageFile="~/MasterPage.master" CodeFile="AppleStore.aspx.cs" Inherits="AppleStore" Title="侦听苹果商店" %>
<% @ MasterType VirtualPath="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1" Runat="Server">
                
                <div style="margin-top : 30px; width : 100%">
                <div style="z-index: 107; margin-left : 0; float : left; width : auto">
                    <asp:Image ID="Image2" ImageUrl="./Pics/apple.jpg" runat="server" />
                </div>
                <div style="z-index: 107; margin-left : 0; float : left; width : auto">
                    <h3>商店侦听</h3><h4 style=" color:Red">注意： 由于苹果商店暂无紧俏商品出售，本服务暂停，我们会在iphone5/ipad3出售时重启此服务</h4>
                </div>
                </div>

                <div style="margin-top : 30px; float : left; width : 100%">
                    <div style="margin-top : 10px auto; width : 100%">
                    我们会在苹果商店开始出售此商品时，给您发短信（每件商品每月消耗积分：<b>2</b>）（<a href="./HowToSet139.aspx" >帮助？</a>）：
                    </div>
                    <div style="z-index: 107; margin-left : 0; float : left; width : auto">商店地址：</div>
                    <div style="z-index: 107; margin : 0 auto; float : left; width : 27%">
                        <asp:DropDownList ID="StoreLocationsList" runat="server">
                            <asp:ListItem Text="中国内地" Value="中国内地"></asp:ListItem>
                            <asp:ListItem Text="中国香港" Value="中国香港"></asp:ListItem>
                        </asp:DropDownList>
                    </div>

                    <div style="z-index: 107; margin-left : 20px; float : left; width : auto">商品名称：</div>
                    <div style="z-index: 107; float : left; width : 27%">
                        <asp:DropDownList ID="DeviceList" runat="server">
                            <asp:ListItem Text="IPAD" Value="IPAD"></asp:ListItem>
                            <asp:ListItem Text="IPHONE4" Value="IPHONE4"></asp:ListItem>
                        </asp:DropDownList>
                    </div>

                    <asp:Button ID="Button3" runat="server" Text="侦听" class="btn-submit2 enabled2"
                        Font-Bold="True" Font-Size="Medium" OnClick="Button3_Click"  />
                
                </div>

                
              <div style="float : left; margin-top : 30px; width : 100%">
                <div style="margin-top : 10px auto; width : 100%">
                您已经关注的服务，您可以修改他们：
                </div>
                <asp:ListView ID="ListView"
                    DataSourceID="objService"
                    onitemupdating="ListView1_ItemUpdating"
                    OnItemDeleting="ListView1_ItemDeleting"
                    OnItemCommand = "ListView1_ItemCommand"
                    runat="server">
                    <LayoutTemplate>
                      <table cellpadding="2" class="datasheet datatable excel2007" width="640px" border="1" runat="server" id="tblProducts">
                        <tr id="Tr1" class="first" runat="server">
                          <th id="Th3" runat="server">#</th>
                          <th id="Th1" runat="server">商店地址</th>
                          <th id="Th2" runat="server">商品名称</th>
                        </tr>
                        <tr runat="server" id="itemPlaceholder" />
                      </table>
                      <asp:DataPager runat="server" ID="DataPager" PageSize="12">
                        <Fields>
                          <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowLastPageButton="true"
                            FirstPageText="|&lt;&lt; " LastPageText=" &gt;&gt;|"
                            NextPageText=" &gt; " PreviousPageText=" &lt; " />
                        </Fields>
                      </asp:DataPager>
                    </LayoutTemplate>
                    <ItemTemplate>
                      <tr id="Tr2" runat="server">
                        <th class="first" style="white-space:nowrap">
                          <asp:LinkButton ID="DeleteButton" runat="Server" Text="取消侦听" CommandName="Delete" />
                        </th>
                        <td>
                          <asp:DropDownList ID="LocationDropDownList" runat="Server" SelectedValue ='<%#Bind("StoreLocation") %>' >
                            <asp:ListItem Text="中国内地" Value="中国内地"></asp:ListItem>
                            <asp:ListItem Text="中国香港" Value="中国香港"></asp:ListItem>
                          </asp:DropDownList>
                        </td>
                        <td valign="top">
                          <asp:DropDownList ID="DeviceDropDownList" runat="Server" SelectedValue ='<%#Bind("DeviceName") %>' >
                            <asp:ListItem Text="IPAD" Value="IPAD"></asp:ListItem>
                            <asp:ListItem Text="IPHONE4" Value="IPHONE4"></asp:ListItem>
                          </asp:DropDownList>
                        </td>
                      </tr>
                    </ItemTemplate>
            </asp:ListView>
            <asp:ObjectDataSource ID="objService" runat="server" TypeName="AppleService"
                SelectMethod="Select" UpdateMethod="Update" DeleteMethod="Delete" 
                onobjectcreating="objService_ObjectCreating">      
            </asp:ObjectDataSource>
            <p>
                <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
            </p>

            <asp:Button ID="Button4" runat="server" Text="保存我的改动" class="btn-submit enabled"
                                Font-Bold="True" Font-Size="Medium" OnClick="Button4_Click"  />
            </div>
            
<div style="z-index: 107; margin-top : 60px; float : left; width : 100%">
      <table style="margin-left : 0; float : left; width : 100%">
        <tr>
          <td>
           其他服务：
          </td>
          <td id="Th3" runat="server">
             <a href="./Stock.aspx" title= "股票信息侦听服务"><asp:Image ID="Image1" ImageUrl="./Pics/stock.jpg" runat="server" />
             </a>
           </td>
           <td id="Th1" runat="server">
             <a href="./QQOnline.aspx" title= "QQ在线侦听服务"><asp:Image ID="Image3" ImageUrl="./Pics/qq.jpg" runat="server" />
             </a>
           </td>
           <td id="Th2" runat="server">
             <a href="./weather.aspx" title= "天气预报"><asp:Image ID="Image4" ImageUrl="./Pics/weather.gif" runat="server" />
             </a>
           </td>
        </tr>
        <tr>
          <td></td>
          <td id="Td1" runat="server">
             <a href="./Stock.aspx" title= "股票信息侦听服务">股票信息侦听
             </a>
           </td>
           <td id="Td2" runat="server">
             <a href="./QQOnline.aspx" title= "QQ在线侦听服务">QQ在线侦听
             </a>
           </td>
           <td id="Td3" runat="server">
             <a href="./weather.aspx" title= "天气预报">天气预报
             </a>
           </td>
        </tr>
       </table>
      <div style="z-index: 107; margin-left : 0; float : left; width : 100%">
                  <div style="z-index: 107; margin-top : 30px; float : left; width : 100%">
                 分享到：
                <div id="jiathis_style_32x32">
	                <a class="jiathis_button_tsina"></a>
	                <a class="jiathis_button_tqq"></a>
                    <a class="jiathis_button_qzone"></a>
	                <a class="jiathis_button_renren"></a>
	                <a class="jiathis_button_kaixin001"></a>
                    <a class="jiathis_button_douban"></a>
                    <a class="jiathis_button_tieba"></a>
                    <a class="jiathis_button_thexun"></a>
                    <a class="jiathis_button_51"></a>
                    <a class="jiathis_button_t163"></a>
                    <a class="jiathis_button_tsohu"></a>
                    <a class="jiathis_button_mop"></a>
                    <a class="jiathis_button_tianya"></a>
                    <a class="jiathis_button_fb"></a>
                    <a class="jiathis_button_msn"></a>
                    <a class="jiathis_button_twitter"></a>
                    <a class="jiathis_button_hi"></a>
                    <a class="jiathis_button_zhuaxia"></a>
	                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	                <a class="jiathis_counter_style"></a>
                </div>
                <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8">
                </script>
                <script type="text/javascript">
                    var jiathis_config = {
                        url: "http://www.shuyixia.com/Apple.aspx",
                        title: "这个网站很不错哦，可以帮我监视苹果在线商店的变化情况，在iphone5/ipad3开始在线销售时，给我发送提醒短信!"
                    }
                </script>
      </div>
      </div>
</div>
</asp:Content>
